class UserEntity {
  String avatar = '';
  String gender = '';
  String nickname = '';
  String phone = '';
  int id = 0;

  UserEntity(this.avatar, this.gender, this.nickname, this.phone, this.id);

  factory UserEntity.fromJson(Map<String, dynamic> json) => UserEntity(
        json['avatar'] as String,
        json['gender'] as String,
        json['nickname'] as String,
        json['phone'] as String,
        json['id'] as int,
      );

  @override
  String toString() {
    return 'UserEntity{avatar: $avatar, gender: $gender, nickname: $nickname, phone: $phone, id: $id}';
  }
}
